package com.write.spring.ioc.core;

/**
 * bean的定义
 */
public class BeanDefinition {
    /**
     * bean 对应的 class 对象，bean的类型
     */
    private Class beanClass;
    /**
     * scope
     */
    private String scope;
    /**
     * isLazy
     */
    private boolean isLazy;

    public BeanDefinition(Class beanClass) {
        this.beanClass = beanClass;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public boolean isLazy() {
        return isLazy;
    }

    public void setLazy(boolean lazy) {
        isLazy = lazy;
    }

    public Class getBeanClass() {
        return beanClass;
    }

}
